package com.leo.train.business.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

@Data
public class TrainInfo implements Serializable {
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;
    private String trainCode;
    private Integer index;
    private String name;
    private String namePinyin;
    @JsonFormat(pattern = "HH:mm:ss", timezone = "GMT+8")
    private String inTime;
    @JsonFormat(pattern = "HH:mm:ss", timezone = "GMT+8")
    private String outTime;
    @JsonFormat(pattern = "HH:mm:ss", timezone = "GMT+8")
    private String stopTime;
    private Double km;
    private Date createTime;
    private Date updateTime;
}
